<!--
- @founder   IT柏拉图, https: //weibo.com/itprato
- @author    DedeCMS团队
- @copyright Copyright (c) 2007 - 2021, 上海卓卓网络科技有限公司 (DesDev, Inc.)
--->

<html>
<head>
<meta charset="{dede:global.cfg_soft_lang/}" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>文档管理</title>
<meta name="copyright" content="2007-2021 DedeCMS, 上海卓卓网络科技有限公司 (DesDev, Inc.)" />
<link rel="icon" href="/favicon.ico" />
<!-- CSS FILES -->
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/pkg/uikit/css/uikit.min.css" />
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/css/manage.dede.css">
</head>
<body>
<div id="Table_Header_202X2W2X1X292F" class="uk-card uk-card-small uk-card-default" uk-sticky="bottom: #offset">
<div id="Header_1W2T2S2T1V252B" class="uk-card-header">
<div class="uk-grid uk-grid-small uk-text-small">
<span>
<ul class="uk-breadcrumb">
<li><span>栏目管理</span></li>
<li><span>内容发布向导</span></li>
</span>
</div>
</div>
<table id="dede-table-toolbar" class="uk-table uk-table-middle uk-table-divider uk-table-striped uk-margin-remove">
<thead>
<tr>
<td width="8%">ID</td>
<td width="8%">选择</td>
<td width="20%">频道内容类型</td>
<td width="20%">附加表</td>
<td width="10%">栏目数</td>
<td>操作选项</td>
</tr>
</thead>
</table>
</div>
<form name="form1" action="public_guide.php?action=setdefault" method="post">
<div id="Table_Body_1X2V2U2V1W272D" class="uk-card uk-card-small uk-card-default" style="top: -51;">
<div class="uk-card-body uk-overflow-auto" grid>
<div class="uk-child-width-1-1">
<div class="uk-overflow-auto">
<table class="uk-table uk-table-hover uk-table-middle uk-table-divider uk-table-striped uk-margin-remove">
<thead>
<tr>
<td width="8%">ID</td>
<td width="8%">选择</td>
<td width="20%">频道内容类型</td>
<td width="20%">附加表</td>
<td width="10%">栏目数</td>
<td>操作选项</td>
</tr>
</thead>
<tbody>
<!-- 内容列表 -->
<?php
$i=0;
while($row = $dsql->GetArray()){
$i++;
$row['mancon'] = ($row['mancon']=='' ? 'content_list.php?channelid='.$row['id'] : $row['mancon'].'?channelid='.$row['id']);
$catnum = GetCatalogs($dsql,$row['id']);
?>
<tr>
<td><?php echo $row['id']; ?></td>
<td><input type="radio" name="cid" value="<?php echo $row['id']; ?>" class="uk-radio" <?php echo $checkbox; ?>/></td>
<td><?php echo $row['typename']; ?></td>
<td><?php echo $row['addtable']; ?></td>
<td><?php echo $catnum; ?></td>
<td>
<a href="catalog_main.php">[管理栏目]</a>
<?php
if($catnum>0){
?>
<a href="<?php echo $row['mancon']; ?>">[管理内容]</a>
<a href="catalog_do.php?channelid=<?php echo $row['id'];?>&cid=0&dopost=addArchives">[发布内容]</a>
<?php }else{ ?>
<font color='#cccccc'></font>[管理内容]</font>
<font color='#cccccc'>[发布内容]</font>
<?php } ?>
</td>
</tr>
<?php
}
?>
<!-- /内容列表 -->
</tbody>
<!-- 批量操作 -->
<thead>
<tr>
<td></td>
<td height="36" colspan="5">
<button type="submit" class="uk-button uk-button-default uk-button-small">把所选的频道表单设为默认表单</button>
<a href="#" onclick="ResetDefault()" class="uk-button uk-button-default uk-button-small">取消默认表单</a>
</td>
</tr>
</thead>
<!-- /批量操作 -->
</table>
</form>
</div>
</div>
</div>
</div>
<div class="bar-bottom uk-flex uk-light uk-flex-right">
<div class="uk-button-group" style="margin-left: 50px;"></div>
<div class="e1e02">Copyright &copy; 2007-2021 <a href='http://www.dedecms.com' target='_blank'><u>DedeCMS</u></a>, 上海卓卓网络科技有限公司 (DesDev, Inc.)</div>
</div>
<!-- JS FILES -->
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit-icons.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/jquery/jquery.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/js/dede.manage.min.js"></script>
<script language='javascript'>
function SetDefault(name = null)
{
var radioVal;
if (name == null) {
radioVal = $("input[type='radio']:checked").val();
}else{
radioVal = $("input[name='"+name+"']:checked").val();
}
if(v==''){
alert("你没有选中需要设置为默认的栏目！");
}else{
location="public_guide.php?action=setdefault&cid="+radioVal;
}
}
function ResetDefault(){
location="public_guide.php?action=setdefault&cid=0";
}
</script>
</body>
</html>
